from t_redis import POOL
import redis

r = redis.Redis(connection_pool=POOL)
# result = r.get(name='name')
# print(result)
# r.mset({'key1':'value1', 'key2':'value2'})
# result = r.get('name')
# print(result)
# result = r.getset('name','code')
# print(result)

# r.append('name','Fun')
# result = r.get('name')
# r.hmset('dict_name',{'key1':'value1', 'key2':'value2'})
# result = r.hlen('dict_name')
r.rpush('list_name',0,1,2,3,4,5)
# result = r.rpushx('list',10)
result = r.linsert('list_name','before',3,'3333333')
print(result)




